import request from '@/utils/requset'

export const getCategoryService = () => {
  return request.get('/home/category/head')
}

export const getBannerService = (params = {}) => {
  const distributionSite = params || 1
  return request.get('/home/banner', {
    params: {
      distributionSite
    }
  })
}

export const getNewService = () => {
  return request.get('/home/new')
}

export const getHotService = () => {
  return request.get('/home/hot')
}

export const getGoodsService = () => {
  return request.get('/home/goods')
}
